﻿using CgdataBase;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace FolderCompare.Converters
{
    public class NameConverter : CgdataBase.Converters.ConverterBase<NameConverter>
    {
        public override object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value is string str && str.IsContainValidText())
            {
                return Visibility.Visible;
            }

            return Visibility.Hidden;
        }
    }
}